package grailsworkshop2012_1_g

class Budget {
    float food
    float lodging
    float tickets
    float otherExpenses
    
    /*Creando relación "one to one" entre la clase trip y budget. 
     *Relación: |Trip|(1)<-----(1)|Budget|
     */
    static belongsto = Trip
      
    static constraints = {
        
        food blank:false
        lodging blank:false
        tickets blank:false
        otherExpenses blank:false
                     
    }
}
